﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<AplicacionMVC.Models.ReservaAdic>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            
            <th>
                Usuario
            </th>
             <th>
                Sala
            </th>
            <th>
                Dia
            </th>
            <th>
                Turno
            </th>
            <th>
                Observacion
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new { id = item.id_reserva})%> |
                <%: Html.ActionLink("Detalles", "Details", new { id = item.id_reserva })%> |
                <%: Html.ActionLink("Eliminar", "Delete", new { id = item.id_reserva })%>
            </td>
            <td>
                <%: item.usuario %>
            </td>
            <td>
                <%: item.sala %>
            </td>
            <td>
                <%: item.dia %>
            </td>
            <td>
                <%: item.turno %>
            </td>
            <td>
                <%: item.observacion %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Nueva Reserva", "Create") %>
    </p>

</asp:Content>

